﻿using ML.Entity;
using System.Collections.Generic;

namespace ML.IRepository
{
    public interface IUserInvitationRepository : IBaseRepository<UserInvitationEntity>
    {
        /// <summary>
        /// 根据用户id查询被邀请人信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IEnumerable<UserInvitationResponse> GetUserInvitationByUserId(string id);

        /// <summary>
        /// 检查是否已经邀请
        /// </summary>
        /// <param name="invitationId">邀请人Id</param>
        /// <param name="beInvitationId">被邀请人Id</param>
        /// <returns></returns>
        bool CheckAlreadyInvited(string invitationId, string beInvitationId);
    }
}